package mergesort;

import java.util.concurrent.ForkJoinPool;

public class MergeSorter {
	public static int[] sort(int[] arr) {
		ArraySortTask task = new ArraySortTask(arr);
	    ForkJoinPool forkJoinPool = new ForkJoinPool();
	    forkJoinPool.invoke(task);
	    return task.join();
	}
}
